package org.smile.homework01.kevin.WithDrawMoney;

public class BrandchManager extends Approver{
    public BrandchManager(String name) {
        super(name + "驻点经理");
    }
WithDrawMoney brandch = new BrandchManagerWDM();
    //5000--10000由驻点经理审批
    @Override
    public void ProcessRequest(PurchaseRequest request) {
        if(request.getAmount() >=5000 && request.getAmount() < 10000){
            System.out.println("取款单号" + request.getID() + "取款：" + request.getAmount() + "经过" + this.name + "审批");
            brandch.withDrawMoney();
        }
        else{
            successor.ProcessRequest(request);
        }
    }
}
